package dgut.haitaobao.util.response;

public enum HttpResponseCode {
    SUCCESS(200, "请求成功"),
    ERROR(500, "系统错误"),
    AUTH_INVALID(101, "Auth invalid"),
    PERMISSION_INVALID(102, "Permission invalid");

    private int code;
    private String message;

    private HttpResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
